package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HProduct;
import com.flea.hclv.model.entity.vo.ProductSearchVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface HProductMapper {

	List<HProduct> selectPagings(RowBounds rowBounds, @Param("name") String name,
      @Param("type") String type,@Param("orgId") String orgId);
	  List<HProduct> selectPagingByOrgConditon(RowBounds rowBounds, @Param("pvo")ProductSearchVo pvo);


	int delete(@Param("ids") List<String> ids);

	int insert(HProduct record);
	int insertSelective(HProduct record);

	HProduct selectByPrimaryKey(String id);

	int updateByPrimaryKey(HProduct record);

	List<HProduct> selectForSearch( RowBounds rowBounds,@Param("pvo")ProductSearchVo pvo);

	List<HProduct> selectForSearchByOrg(@Param("pvo")ProductSearchVo pvo);

	List<HProduct> findLikeName(@Param("productName") String productName, @Param("deptId") String deptId);

	List<HProduct> findByIdsAndDeptId(@Param("deptId") String deptId,@Param("ids") List<String> productIds);

	List<HProduct> findByDeptId(String deptUuid);


    List<HProduct> selectTopTen();
}